import { Injectable } from '@nestjs/common';
import { Cat } from './models/cat.interface';

@Injectable()
export class CatsService {
    private readonly cats:Cat[]=[];

    create(cat:Cat){
        const cat1={
            name:"jim",
            age:7,
            breed:'kk'
        }
        this.cats.push(cat1);
    }

    findAll():Cat[]{
        return this.cats;
    }

}
